package com.example.examsystem2.mapper;

import com.example.examsystem2.entity.Exam;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface ExamMapper {
    int add_exam(Exam exam);

    Exam get_exam_by_e_id(int e_id);

    List<Exam> get_all_exam();

    int del_exam_e_id(int e_id);

    List<Exam> get_exam_by_s_id(int s_id);
}
